<?php
use common\service\StaticService;
use common\service\GlobalUrlService;
use backend\assets\AdminAsset;

StaticService::includeAppCssStatic(GlobalUrlService::buildStaticUrl('/css/index.css'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/js/index.js'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/js/main.js'),AdminAsset::class);
StaticService::includeAppJsStatic(GlobalUrlService::buildStaticUrl('/js/cache.js'),AdminAsset::class);

?>
<blockquote class="layui-elem-quote layui-bg-green">
    <input type="hidden" id="current-user" value="<?= $this->params['current_user']['username']?>">
    <div id="nowTime"></div>
</blockquote>
<div class="layui-row layui-col-space10 panel_box">
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4"><!-- layui-col-lg2 -->
        <a href="javascript:;">
            <div class="panel_icon layui-bg-green">
                <i class="layui-anim seraph icon-icon10"></i>
            </div>
            <div class="panel_word">
                <span>日新增用户数<?=$data['day_user']?></span>
                <cite>总用户数<?=$data['count_user']?></cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4">
        <a href="javascript:;">
            <div class="panel_icon layui-bg-black">
                <i class="layui-icon layui-anim seraph layui-icon-rmb"></i>
            </div>
            <div class="panel_word">
                <span>日销售金额<?=$data['day_money']?></span>
                <cite>总销售金额<?=$data['count_money']?></cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4">
        <a href="javascript:;">
            <div class="panel_icon layui-bg-red">
                <i class="layui-icon layui-icon-cart layui-anim seraph"></i>
            </div>
            <div class="panel_word">
                <span>日订单量<?=$data['day_order']?></span>
                <cite>总订单量<?=$data['count_order']?></cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4">
        <a href="javascript:;">
            <div class="panel_icon layui-bg-orange">
                <i class="layui-anim seraph icon-good" data-icon="icon-icon10"></i>
            </div>
            <div class="panel_word userAll">
                <span>日商品销量<?=$data['day_goods']?></span>
                <cite>总商品销量<?=$data['count_goods']?></cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4">
        <a href="javascript:;">
            <div class="panel_icon layui-bg-cyan">
                <i class="layui-anim layui-icon layui-icon-app" ></i>
            </div>
            <div class="panel_word outIcons">
                <span>日活动数<?=$data['day_active']?></span>
                <cite>总活动数<?=$data['count_active']?></cite>
            </div>
        </a>
    </div>
    <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4">
        <a href="javascript:;">
            <div class="panel_icon layui-bg-blue">
                <i class="layui-anim seraph icon-clock"></i>
            </div>
            <div class="panel_word">
                <span class="loginTime"><?= $this->params['current_user']['last_time']?></span>
                <cite>上次登录时间</cite>
            </div>
        </a>
    </div>
</div>
